package simple14.fruit;

//橘子
public class Orange implements Fruit {
    private int price = 150;

    public Orange(int price) {
        this.price = price;
    }


    public void setPrice(int price) {
        this.price = price;
    }

    public Orange() {
    }

    @Override
    public void fruit() {
        System.out.print("橘子");
    }

    @Override
    public int price() {
        return price;
    }
}
